<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ValF</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">ValF()</font></b></p>
<p><b>语法</b></p><blockquote>

Result.f = <font color="#3A3966"><b>ValF</b></font>(String$)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Converts a string into a float value. The string must be a float in 
decimal or in scientific (exponent) format. The number parsing stops at the first non numeric character. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>String$</i></td>
<td width="90%"> 
 
The string to convert. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



The float value of the string. 

 

</blockquote><p><b>备注</b></p><blockquote>



Strings holding an integer can also be converted with <a href="val.html">Val()</a> and 64-bit floats with <a href="vald.html">ValD()</a> (with more accuracy than <a href="valf.html">ValF()</a>). 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">ValF</font>("10.24")     <font color="#3A3966">; will display 10.24</font>
  <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">ValF</font>("1.2345e+3") <font color="#3A3966">; will display 1234.5</font>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="vald.html">ValD()</a>, <a href="val.html">Val()</a>, <a href="str.html">Str()</a>, <a href="strf.html">StrF()</a>, <a href="strd.html">StrD()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=vald.html>ValD()</a> - <a href="index.html">String Index</a><br><br>

</body></html>